import asyncio
import time

async def func(url):
    print("Downloading...",url)
    await asyncio.sleep(1)
    print("finished~",url)
start = time.time()
urls = [
    "www.baidu.com",
    "www.zhihu.com",
    "www.taobao.com"
]
task_list = []
for url in urls:
    work = func(url)
    task = asyncio.ensure_future(work)
    task_list.append(task)

loop = asyncio.get_event_loop()
loop.run_until_complete(asyncio.wait(task_list))
print(time.time() - start)